#include <stdio.h>

int main () {
	int x, y, z = 1;
	scanf("%d %d", &x, &y);
	for (int i = 1; i <= y; i++) {
		z *= x;
	}
	printf("%d\n", z);
	return 0;
}